package School;

/**
 * 定义普通人、老师、班主任、学生、学校5个类，每个类提供适当的成员变量和成员方法，
 * 要求具有良好的封装性，定义主类使之运行。
 */

class school {
    public String name;
    public String address;
    int i = 0;
    private home_room_Teacher[] homeroomTeachers;
    private student[] students;

    public school(String name, String address) {
        this.name = name;
        this.address = address;
    }

    public void introduceSchool(home_room_Teacher[] teachers, student[] students) {
        System.out.println("===================欢迎来到 " + name + "!==================\n我校教师信息如下:");
        for (home_room_Teacher teacher : teachers) {
            i += 1;
            System.out.println("序号:" + i + ". " + teacher.toString());
        }
        i = 0;
        System.out.println("=================教师信息展示完毕,共有教师" + teachers.length + "人=================");
        System.out.println("我校学员信息如下:");
        for (student student : students) {
            i += 1;
            System.out.println("序号:" + i + ". " + student.toString());
        }
        System.out.println("=================学员信息展示完毕,共有学员" + students.length + "人=================");


    }
}
